]> dgit.raspbian.org Git - gnome-shell.git/commit
padOsd: Use non-deprecated librsvg API to create handle
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 26 Apr 2019 11:03:42 +0000 (13:03 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Sat, 27 Apr 2019 05:50:08 +0000 (05:50 +0000)
commit38da54fb02cce95ff752cea2793525b9e922c600
treed0e53d4d28e0cf57a934a616c096fac8b82d35d7
parentbbd3275dadeeec28bd47a7cbec1b72a5bec8212e
padOsd: Use non-deprecated librsvg API to create handle

On one hand, we were using a path instead of an URI on
rsvg_handle_set_base_uri(). This broke at some point in librsvg
(presumably for the best, handling paths there sounds non-standard)
leaving a blank svg (As the base image wouldn't be accessed).

On the other hand, we use this with the deprecated rsvg_handle_write()
which we should drift away from.

Using rsvg_handle_new_from_stream_sync() neatly solves both. We use
newer API based on input streams and GFiles, and it internally does
the right thing, bringing the pad OSD back to life.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/1220
js/ui/padOsd.js